package com.sqj.prototypePattern.deep;

public class DeepCloneTest {
    public static void main(String[] args) {
        QitianDaSheng qitianDaSheng=new QitianDaSheng();
        QitianDaSheng clone= (QitianDaSheng) qitianDaSheng.clone();
        System.out.println("深克隆："+(qitianDaSheng.jinGuBang==clone.jinGuBang));
        QitianDaSheng q=new QitianDaSheng();
        QitianDaSheng n = q.shallowClone(q);
        System.out.println("浅克隆："+(q.jinGuBang==n.jinGuBang));
    }
}
